<?php

namespace App\Http\Middleware;

use Closure;

class ClientChange
{

    public function handle($request, Closure $next)
    {
        config(['auth.defaults.guard' => 'api']);
        config(['jwt.user' => 'App\Models\hwtc\Apiuser']);  //重要用于指定特定model
        config(['auth.providers.users.model' => \App\Models\hwtc\Apiuser::class]);  //重要用于指定特定model

        return $next($request);
    }
}
